home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/perl
-
- $target = $ARGV[2];
-
- # Remove old login items
- system("/usr/bin/osascript -e \'tell application \"System Events\"\' -e \'delete login item \"SEC Helper\"\' -e \'end tell\' &");
- system("/usr/bin/osascript -e \'tell application \"System Events\"\' -e \'delete login item \"Sony Ericsson Clicker Helper\"\' -e \'end tell\' &");
- # Add new login item
- system("/usr/bin/osascript -e \'tell application \"System Events\"\' -e \'make new login item at end of login items with properties {path:\"$target/Library/PreferencePanes/Salling Clicker.prefPane/Contents/MacOS/SEC Helper.app\", kind:\"APPLICATION\", hidden:true}\' -e \'end tell\' &");
-
- exit 0